package router

import (
	"awesomeProject/userop-web/api/message"
	"awesomeProject/userop-web/middlewares"
	"github.com/gin-gonic/gin"
)

func InitMessageRouter(Router *gin.RouterGroup) {
	MessageRouter := Router.Group("message").Use(middlewares.Trace())
	{
		MessageRouter.GET("", middlewares.JWTAuth(), message.List) // 获取信息页
		MessageRouter.POST("", middlewares.JWTAuth(), message.New) // 新建留言
	}
}
